#pragma once
#include "Dialog.h"
#include "resource.h"
#include "MemDC.h"

class CParseFastDlg : public CDialog
{
public:
	enum { IDD = IDD_FASTPASTE_DIALOG };

	CParseFastDlg(HWND hWnd);

	virtual void OnInitDialog();
	virtual UINT OnOK();

	CEditCtrl m_past_times, m_past_skip;
};

class CAboutDlg : public CDialog
{
public:
	enum { IDD = IDD_ABOUTDIALOG };

	CAboutDlg(HWND hWnd);

	virtual void OnInitDialog();
	void OnClickHomepage();
};

class CSettingsDlg : public CDialog
{
public:
	enum { IDD = IDD_VIEWSETTINGSDIALOG };

	CSettingsDlg(HWND hWnd);

	virtual void OnInitDialog();
	virtual UINT OnOK();
};

class CColorButton : public CDialogCtrl
{
public:
	virtual LRESULT OnMessage(UINT iMsg, WPARAM wParam, LPARAM lParam);
	void OnPaint(CMemDC &memdc);

	void SetColor(COLORREF color, BOOL bErase=TRUE) { this->color=color; Invalidate(bErase); };

	COLORREF color;
};

class CColorSettingsDlg : public CDialog
{
public:
	enum { IDD = IDD_COLORSETTINGSDIALOG };

	CColorSettingsDlg(HWND hWnd);

private:
	virtual void OnInitDialog();
	virtual UINT OnOK();

	void OnClickColor0();
	void OnClickColor1();
	void OnClickColor2();
	void OnClickColor3();
	void OnClickColor4();
	void OnClickColor5();
	void OnClickColor6();
	void OnClickColor7();
	void OnClickColor8();
	void OnClickColor9();
	void OnClickColor10();
	void OnClickDefaultScheme();

	void SetColor(int id);

	CColorButton m_color[11];
};
